<?
	global $arr, $player_active;
?>
<div id="main-header" class="page-header">
  <ul class="breadcrumb">
    <li> <i class="icon-home"></i>MoonCake <span class="divider">&raquo;</span> </li>
    <li> <a href="#">Dashboard</a> </li>
  </ul>
  <h1 id="main-heading"> Danh Sách Tài Khoản <span>Thiên Mệnh | Nam Vương</span> </h1>
</div>
<div id="main-content">
  <div class="row-fluid">
    <div class="span12 widget">
      <div class="widget-header"> <span class="title">Danh Sách Gamer</span> </div>
      <div class="widget-content table-container">
        <table id="demo-dtable-02" class="table table-striped">
          <thead>
            <tr>
              <th>STT</th>  
              <th>User</th>              
              <th>Password MD5</th>
              <th>Password</th> 
              <th>Email</th>  
              <th>Trình Trạng</th> 
              <th>IP Login</th>               
            </tr>
          </thead>
          <tbody>
          	<?
            	for($i = 0; $i< count($arr); $i++)
				{
					$player = $arr[$i];
					$player_active = $player['active'];
					global $playerId;
					$playerId = $player['id'];
			?>
            <tr>
              <td><?=($i+1)?></td>	
              <td><?=$player['id']?></td>
              <td><?=$player['password']?></td>
              <td><?=$player['password_hash']?></td> 
              <td><?=$player['email']?></td> 
              <td><?php Template::UserControlAD('PlayerActive'); ?></td>  
              <td><?=$player['ip_login_last']?></td>           
            </tr>
            <?
				}
			?>
          </tbody>          
          <tfoot>
            <tr>
              <th>STT</th>  
              <th>User</th>              
              <th>Password MD5</th>
              <th>Password</th> 
              <th>Email</th>  
              <th>Trình Trạng</th> 
              <th>IP Login</th> 
            </tr>
          </tfoot>
        </table>
        <?=$plpage?>
      </div>
    </div>
  </div>
</div>

